/**
 * Copyright (c) 2005-2016, yinwer81 (yinwer81@aliyun.com)
 *
 * Licensed under the Apache License, Version 2.0
 */
package com.nozturn.throne.entity;

public class Authorization extends IdEntity {

    private static final long serialVersionUID = -8675213245489608435L;

    /**
     * 授权码，逻辑主键，唯一索引
     */
    private String authorizationCode;

    /**
     * 客户端表物理主键
     */
    private Long clientPk;

    /**
     * 用户表物理主键
     */
    private Long userPk;

    /**
     * 是否有效，100为用户已解除授权，200为有效
     */
    private Integer valid;

    public String getAuthorizationCode() {
        return authorizationCode;
    }

    public void setAuthorizationCode(String authorizationCode) {
        this.authorizationCode = authorizationCode;
    }

    public Long getClientPk() {
        return clientPk;
    }

    public void setClientPk(Long clientPk) {
        this.clientPk = clientPk;
    }

    public Long getUserPk() {
        return userPk;
    }

    public void setUserPk(Long userPk) {
        this.userPk = userPk;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

}
